Filter column for multiple values but only select the last one for one criteria